package com.baizhi.entity;

import java.io.Serializable;

public class Food implements Serializable {
    private  Integer id;
    private  String name;
    private Double price;
    private String desc;
    private Double calorie;

    public Food() {
    }

    public Food(Integer id, String name, Double price, String desc, Double calorie) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.desc = desc;
        this.calorie = calorie;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Double getCalorie() {
        return calorie;
    }

    public void setCalorie(Double calorie) {
        this.calorie = calorie;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", desc='" + desc + '\'' +
                ", calorie=" + calorie +
                '}';
    }
}
